export default [
    {
        path: "/finance",
        redirect: "/finance/chargeplan",
        alwaysShow: true, // will always show the root menu
        name: "Chargeplan",
        meta: {
            title: "财务管理",
            icon: "icon-caiwuguanli",
            roles: ["admin", "editor"], // you can set roles in root nav
        },
        children: [
            {
                path: "/finance/chargeplan",
                component: () => import("@/views/Finance/Chargeplan.vue"),
                name: "/finance/Chargeplan",
                meta: {
                    title: "收费计划",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
            },
            {
                path: "/finance/addcharge",
                component: () => import("@/views/Finance/Addcharge.vue"),
                name: "/finance/Addcharge",
                meta: {
                    title: "收费计划",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
                hidden:true
            },
            {
                path: "/finance/Chargelist",
                component: () => import("@/views/Finance/Chargelist.vue"),
                name: "/finance/Chargelist",
                meta: {
                    title: "收费清单",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
            },
            {
                path: "/finance/Chargingunit",
                component: () => import("@/views/Finance/Chargingunit.vue"),
                name: "/finance/Chargingunit",
                meta: {
                    title: "收费单位",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
            },
            {
                path: "/finance/Expenses",
                component: () => import("@/views/Finance/Expenses.vue"),
                name: "/finance/Expenses",
                meta: {
                    title: "费用支出",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
            },
            {
                path: "/finance/Plandetail",
                component: () => import("@/views/Finance/Plandetail.vue"),
                name: "/finance/Plandetail",
                meta: {
                    title: "收费详情",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
                hidden:true
            },
            {
                path: "/Finance/Addexpense",
                component: () => import("@/views/Finance/Addexpense.vue"),
                name: "/Finance/Addexpense",
                meta: {
                    title: "添加",
                    roles: ["admin"], // or you can only set roles in sub nav
                },
                hidden:true
            },
        ]
    }
]